package com.jingtai.shop.webfacade.bo.store;

import cn.hutool.core.util.ObjectUtil;
import com.jingtai.common.webfacade.BasePageBO;
import com.jingtai.common.webfacade.error.CommonException;
import com.jingtai.common.webfacade.error.ErrorEnum;
import lombok.Data;

@Data
public class CollectStoreBO extends BasePageBO {

    /**
     * 店铺id
     */
    private Long storeId;

    /**
     * 0,已收藏;1,未收藏
     */
    private Integer collectStatus;

    @Override
    public void validate() {
        super.validate();
        if (ObjectUtil.isEmpty(storeId) || ObjectUtil.isEmpty(collectStatus)){
            throw new CommonException(ErrorEnum.REQUIRED_PARAM_EMPTY);
        }
    }
}